<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="yes" name="apple-touch-fullscreen">
        <meta content="black" name="apple-mobile-web-app-status-bar-style">
        <meta content="telephone=no,email=no" name="format-detection">
        <meta name="description" content="">
        <meta name="keywords" content="">
        <title>中欧营销服务平台</title>
        <link rel="stylesheet" href="../static/style/personal.css">
    </head>

    <body>

        <div class="page page-normal">

            <section class="personal-main has-bottom">
                <div class="personal-coupon flex-v">
                    <section class="personal-title">
                        <h1>我的红包</h1>
                    </section>

                    <div class="coupon-info">
                        <h1>700</h1>
                        <h2>红包总额(元)</h2>
                    </div>

                    <div class="coupon-tabnav flex-h">
                        <div class="flex-a-i tabnav-1 active">可使用</div>
                        <div class="flex-a-i tabnav-2">已使用/失效</div>
                    </div>

                    <div class="coupon-tablist flex-a-i">
                        <div class="list-item list-item-1">
                            <ul>
                                <li>
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li>
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li>
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li>
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li>
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                            </ul>
                        </div>

                        <div class="list-item list-item-2" style="display: none;">
                            <ul>
                                <li class="used">
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li class="used">
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li class="used">
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                                <li class="used">
                                    <div class="date">2016-11-02</div>
                                    <div class="flex-h">
                                        <p class="name">红包1</p>
                                        <p class="number">100元</p>
                                        <p class="state">1天后过期</p>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                
            </section>
            
            <section class="column-footer">
                <div class="navbar">
                    <ul class="flex-h">
                        <li class="flex-a-i">
                            <a href="#" class="link-home">首页</a>
                        </li>
                        <li class="flex-a-i">
                            <a href="javascript:void(0);" class="link-column">精华栏目</a>
                            <div class="submenu">
                                <a href="#" class="link-opinion"></a>
                                <a href="#" class="link-read"></a>
                                <a href="#" class="link-idea"></a>
                            </div>
                        </li>
                        <li class="flex-a-i">
                            <a href="#" class="link-my active">个人中心</a>
                        </li>
                    </ul>
                </div>
            </section>

        </div>

        <script src='../static/script/lib/jquery.2.0.0.min.js'></script>
        <script> 
            $(function() {
                // 
                $('.column-footer .navbar a.link-column').on('click', function() {
                    $(this).parent().find('.submenu').toggleClass('active');
                });


                // 
                var couponTabnav = $('.coupon-tabnav .flex-a-i'),
                    couponTablist = $('.coupon-tablist .list-item');

                couponTabnav.on('click', function() {
                    var _this = $(this),
                        _index = _this.index();

                    if(_this.hasClass('active')) {
                        return false;
                    } else {
                        _this.addClass('active').siblings().removeClass('active');
                        couponTablist.eq(_index).show().siblings().hide();
                    }
                });
            });
        </script>
    </body>
</html>